
<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          router
        >
          <el-sub-menu index="1">
            <template #title>
              <!-- <el-icon><location /></el-icon> -->
              <span>Navigator One</span>
            </template>
            <el-menu-item-group>
              <template #title><span>Group One</span></template>
              <el-menu-item index="/login">login</el-menu-item>
              <el-menu-item index="/home">item two</el-menu-item>
            </el-menu-item-group>
          </el-sub-menu>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import Home from "./home/home.vue";
import Login from "./home/login.vue";

export default {
  name: "index",
  components: {
    Login,
    Home,
  },
  data() {
    return {
      isCollapse: false,
    };
  },
  methods: {},
};
</script>

<style>
#index_container {
  width: 100%;
  height: 100%;
}
#index_aside {
  width: 20%;
  height: 100%;
  background-color: aqua;
}
#index_main {
  width: 80%px;
  height: 100%vh;
  background-color: bisque;
}
</style>